Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use nexus section in XRD #113

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

Use nexus section in XRD #113

wants to merge 15 commits into from

Conversation

ka-sarthak
Copy link
Collaborator

@ka-sarthak ka-sarthak commented Aug 28, 2024

We need an external file to offload array data like intensity from the archive, especially for RSM scans. This will reduce the loading time of the archive when toggling between tabs in GUI. For this, we can use .nxs file, which is an HDF5 file, to store the data and access it via HDF5 references.

  • Generate a .nxs file based on the archive. This happens in ELNXRayDiffraction.normalize and uses pynxtools.
  • If we include the nexus parser, the generated .nxs file will be indexed as an entry, and make a subsection in the ELNXRayDiffraction.
  • Use HDF5Reference as the type of the Quantity for array data: intensity, two_theta, q_parallel, q_perpendicular, q_norm, omega, phi, chi.
  • Explore if the plots can also be made lighted using referencing
  • Test for back compatibility and performance bump

@ka-sarthak ka-sarthak self-assigned this Aug 28, 2024
@ka-sarthak ka-sarthak force-pushed the write-nexus-section branch 2 times, most recently from f2bef40 to d583974 Compare September 3, 2024 08:55
aalbino2 and others added 15 commits November 25, 2024 11:42
Co-authored-by: Sarthak Kapoor <[email protected]>
Co-authored-by: Hampus Näsström <[email protected]>
* Implement write nexus section based on the populated nomad archive

* app def missing.

* mapping nomad_measurement.

* All concept are connected, creates nexus file and subsection.

* adding links in hdf5 file.

* Remove the nxs file.

* back to the previous design.

* Include pynxtools plugins in nomad.yaml and extend dependencies including pynxtools ans pnxtools-xrd.

* PR review correction.

* Remove the entry_type overwtitten.

* Remove comments.

* Replace __str__ function.

* RUFF

* Update pyproject.toml

Co-authored-by: Sarthak Kapoor <[email protected]>

* Update src/nomad_measurements/xrd/schema.py

Co-authored-by: Sarthak Kapoor <[email protected]>

* Update src/nomad_measurements/xrd/nx.py

* Replace Try-block.

---------

Co-authored-by: Sarthak Kapoor <[email protected]>
Co-authored-by: Sarthak Kapoor <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants